//
//  AESHelp.h
//  AllMedia
//
//  Created by admin on 13-7-17.
//
//

#define NEEDED_ENCRYPT 1

#import <Foundation/Foundation.h>

@interface AESHelp : NSObject

/*************************************************************/
//本地数据加解密
+(NSString *)encrypt:(NSString *)message;
+(NSString *)decrypt:(NSString *)base64EncodedString;
/*************************************************************/


#pragma mark - used crypt

+(NSData *)encrypt2Data:(NSData *)data;
+(NSData *)decrypt2Data:(NSData *)data;

//与后台数据交互时加解密
+(NSString *)encryptMothed2:(NSString *)message;
+(NSString *)decryptMothed2:(NSString *)base64EncodedString;

//图片
//+(NSData *)encryptMothed2WithImageData:(NSData*)imageData;
//+(NSData *)decryptMothed2WithImageData:(NSData*)imageData;

@end
